package com.studay.entity;

import cn.hutool.extra.mail.MailUtil;
import lombok.Data;

@Data
public class Student {
    private Integer id;
    private String name;
    private Integer age;

    public void setId(Integer id) {
        this.id = id;
    }

    public Student() {
        System.out.println("使用无参构造");
    }

    public Student(Integer id) {
        System.out.println("使用有参构造");
        this.id = id;
    }

    }
